<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="../base_top.jsp" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>订单列表</title>
    
	<%@ include file="../base_head.jsp" %> 
	<link rel="stylesheet" type="text/css" href="<%=basePath%>css/user/style.css">
    <link rel="stylesheet" type="text/css" href="<%=basePath%>css/user/common.css">
    <link rel="stylesheet" type="text/css" href="<%=basePath%>css/user/book_style.css">
	<link rel="stylesheet" href="<%=basePath%>css/goods/kkpager_blue.css">
    <script type="text/javascript" src="<%=basePath%>js/jquery-1.8.3.min.js"></script>
    <script type="text/javascript" src="<%=basePath%>js/user/zs.order.js"></script>
  </head>
  
  <body>
<!--topbar开始-->
<%@ include file="../page_topbar.html" %>
<!--topbar结束-->
<div id="wrap">
    <!--search开始-->
    <%@ include file="../selfCenter_search.html" %>
    <!--search结束-->
    
    <!--左边订单中心开始-->
    <%@ include file="../selfCenter_menu.html" %>
    <!--左边订单中心结束-->
    
    <!--右边我的订单开始-->
    <div class="common_guanzhu">
        <div class="common_guanzhu_title">我的订单</div>
    </div>
    <!--右边我的订单结束-->
    <!--右边待付款开始-->
    <!--title开始-->
    <div class="common_guanzhu">
    	<a href="order/orderList?orderType=all">
        <div class="book_guanzhu_title_sub">全部订单
        </div></a>
        
        <a href="order/orderList?orderType=wait_pay">
        <div class="book_guanzhu_title">待付款
        <div style="width: 48px;  border: 1px solid #A30000;"></div>
        </div></a>
        
        <a href="order/orderList?orderType=wait_goods">
        <div class="book_guanzhu_title_sub">待收货
        </div></a>
        
        <a href="order/orderList?orderType=wait_comment">
        <div class="book_guanzhu_title_sub">待评价
        </div></a>
        
        <div class="book_guanzhu_search">
            <input type="search" placeholder="商品名称/商品编号/订单号" id="book_search">
            <input type="button" id="book_btn" value="搜索">
        </div>
        <!--title结束-->
        <!--商品详情开始-->
        <div class="book_wait_detail">
            <table id="book_wait_detail">
                <tr id="first_tr">
                    <td id="first_td">
                        <select>
                            <option value="近三个月订单">近三个月订单</option>
                            <option value="1">近三个月订单</option>
                            <option value="1">近三个月订单</option>
                            <option value="1">近三个月订单</option>
                        </select>
                    </td>
                    <td>订单详情</td>
                    <td>收货人</td>
                    <td>金额</td>
                    <td>
                        <select>
                            <option value="近三个月订单">近三个月订单</option>
                            <option value="1">近三个月订单</option>
                            <option value="1">近三个月订单</option>
                            <option value="1">近三个月订单</option>
                        </select>
                    </td>
                    <td>操作</td>
                </tr>
                <s:iterator value="#request['orderList']" id="list">
                <tr class="second_tr">
                    <td class="second_title" colspan="6">
                    	<s:set value="#request.list.orderInfo.orderCreatTime" id="orderCreateTime"/>
                        <div class="time"><s:property value="#orderCreateTime.toString().substring(0, 19)"/> </div>
                        <div class="book_num"><s:property value="#request.list.orderInfo.orderId"/> </div>
                        <div class="shop_name"><s:property value="#request.list.shopkeeper.skName"/> </div>
                    </td>
                </tr>
	                <s:set value="#request.list.goodsOrder.size()" id="listSize"/>
	                <s:iterator value="#request.list.goodsOrder" id="goodsList" status="I">
	                <tr>
	                    <td class="goods" colspan="2">
	                        <div class="goods_detail">
	                        	<a href='goods/goodsDetail?id=<s:property value="#request.goodsList.goodsNum"/>' target="_blank">
	                            <img src='<s:property value="#request.goodsList.gaPath"/>' alt=""/></a>
	                            &nbsp;&nbsp;&nbsp;&nbsp;<s:property value="#request.goodsList.goodsName"/>
	                        </div>
	                        <div class="num">x<s:property value="#request.goodsList.goodsCount"/></div>
	                    </td>
	                    <s:if test="#I.index == 0">
	                    <td class="name" rowspan='<s:property value="#request.listSize"/>'><s:property value="#request.list.orderInfo.orderConsignee"/></td>
	                    <td class="subtotal" rowspan='<s:property value="#request.listSize"/>'>￥<s:property value="#request.list.orderInfo.goodsAmount"/></td>
	                    <td class="wait" rowspan='<s:property value="#request.listSize"/>'><span><a href="#">等待付款</a> </span><br><span><a href="#">订单详情</a> </span></td>
	                    <td class="operation" rowspan='<s:property value="#request.listSize"/>'><input type="button" value="付款"><br> <span>取消订单</span></td>
	                    </s:if>
	                </tr>
	                </s:iterator>
                </s:iterator>
            </table>
            <script type="text/javascript">
		    $(document).ready(function() {
		    	var totalPage = $("input[name='totalPage']").val();
		        var totalRecords = $("input[name='totalRecords']").val();
		        var pageNo = $("input[name='pageNo']").val();
		        if (!pageNo) {pageNo = 1;}
		        paper(totalPage, totalRecords, pageNo, "order/orderList", "&orderType=wait_pay");
		    });
		    </script>
            <div class="book_wait_detail_foot_right">
            	<input type="hidden" name="pageNo" value="${pageNo}"/>
		    	<input type="hidden" name="totalPage" value="${totalPage}"/>
		    	<input type="hidden" name="totalRecords" value="${totalRecords}"/>
		        <div id="kkpager"></div>
            </div>
        </div>
        <!--商品详情结束-->
    </div>


    <!--右边待付款结束-->
    <!--猜你喜欢开始-->
    <div class="book_tuijian">
        <div class="book_tuijian_title">为你推荐</div>
        <%@ include file="../selfCenter_rec-you-goods.html" %>
    </div>
    <!--猜你喜欢结束-->
    <!--广告开始-->
    <!-- <div class="book_ad">
        <div class="book_ad_img">
            <img src="images/img_05.jpg">
        </div>
        <div class="book_ad_img">
            <img src="images/img_05.jpg">
        </div>
    </div>
    <div class="self_ad_short">
        <img src="images/img_05.jpg">
        <img src="images/img_05.jpg">
        <img src="images/img_05.jpg">
        <img src="images/img_05.jpg">
    </div> -->
    <%@ include file="../selfCenter_bottom_seven-ad.html" %>
    <!--广告结束-->
</div>
</body>
</html>
